.valentine_rank_bg {
  width: 100%;
  // height: 100vh;
  padding-bottom: 60px;
  min-height: 100vh;
  background: #fde8f4 url('../../../images/valentine_rank/active-bg.png') no-repeat;
  background-size: 100%;
  position: relative;
  .back_icon {
    position: fixed;
    z-index: 20;
    top: 58px;
    left: 16px;
    width: 24px;
    height: 24px;
    background: url('../../../images/valentine/back_black.png') no-repeat;
    background-size: contain;
  }
  .active_content {
    padding: 0.1px;
    box-sizing: border-box;

    .top_title {
      margin: 256px auto 0;
      width: 191px;
      height: 57px;
      background: url('../../../images/valentine_rank/top_tit_bg.png') no-repeat;
      background-size: contain;
      font-family: GenSenRounded JP;
      color: #54263d;
      text-align: center;
      font-size: 18px;
      font-weight: 700;
      padding: 26px 0 0 16px;
      box-sizing: border-box;
    }

    .top_content {
      margin: 10px auto;
      width: 343px;
      height: 141px;
      border-radius: 20px;
      border: 1px solid #fff;
      background: linear-gradient(180deg, #fff 0%, #ffeaf7 100%);
      display: flex;
      align-items: center;
      justify-content: space-between;
      box-sizing: border-box;
      padding: 0 40px;

      .item {
        width: 60px;
        text-align: center;
        color: #54263d;

        img {
          width: 60px;
          height: 60px;
          font-size: 0;
          border-radius: 16px;
          background: linear-gradient(180deg, #ffdbdb 0%, rgba(255, 219, 219, 0) 100%);
          border: none;
        }

        .name {
          font-size: 12px;
          padding: 6px 0 3px 0;
        }

        .type {
          opacity: 0.4;
        }
      }
    }

    .sub_tit_content {
      margin: 12px auto;
      box-sizing: border-box;
      padding: 0 30px;
      display: flex;
      justify-content: space-between;
      height: 57px;
      align-items: flex-end;

      .tit {
        width: 121px;
        height: 37px;
        box-sizing: border-box;
        margin-bottom: 4px;

        &.left {
          background: url('../../../images/valentine_rank/left_un.png') no-repeat;
          background-size: contain;

          &.active {
            width: 156px;
            height: 57px;
            background: url('../../../images/valentine_rank/left_active.png') no-repeat;
            background-size: contain;
            margin: 0;
          }
        }

        &.right {
          background: url('../../../images/valentine_rank/right_un.png') no-repeat;
          background-size: contain;

          &.active {
            width: 156px;
            height: 57px;
            background: url('../../../images/valentine_rank/right_active.png') no-repeat;
            background-size: contain;
            margin: 0;
          }
        }
      }
    }

    .content {
      .task_content {
        width: 343px;
        margin: 0 auto;
        .task_item {
          position: relative;
          margin-bottom: 16px;
          box-sizing: border-box;
          border-radius: 22px;
          width: 343px;
          height: 70px;
          flex-shrink: 0;
          background: linear-gradient(180deg, #f9cdcd 0%, #fff6ff 100%);
          box-shadow: 0px 6px 0px #ffd3d3;
          color: #54263d;
          padding: 15px 16px;
          .tit {
            font-size: 16px;
            line-height: 18px;
            .num {
              color: #ff6262;
              padding-left: 4px;
            }
          }
          .point {
            font-size: 12px;
            padding-top: 6px;
            opacity: 0.4;
          }
          .no_limit {
            font-size: 12px;
            color: #fff;
            border-radius: 11px;
            background: rgba(255, 92, 0, 0.6);
            box-sizing: border-box;
            padding: 4px 8px;
            margin-left: 4px;
          }
          .btn {
            width: 74px;
            height: 36px;
            line-height: 34px;
            text-align: center;
            // display: flex;
            // align-items: center;
            // justify-content: center;
            color: #fff;
            font-weight: 500;
            font-size: 12px;
            background: url('../../../images/valentine_rank/btn.png') no-repeat;
            background-size: contain;
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
          }
        }
        .rule {
          font-size: 12px;
          line-height: 20px;
          font-weight: normal;
          .top_title {
            margin-top: 6px;
            margin-bottom: 20px;
          }
          .t {
            font-weight: 500;
            padding-bottom: 16px;
          }
        }
      }

      .rank_content {
        width: 343px;
        margin: 0 auto;
        padding-bottom: 80px;
        .rank_item {
          border-radius: 20px;
          display: flex;
          align-items: center;
          box-sizing: border-box;
          padding: 10px 12px 10px 14px;
          height: 60px;
          background: linear-gradient(180deg, #f9cdcd 0%, #fff6ff 100%);
          box-shadow: 0px 6px 0px #ffd3d3;
          margin-bottom: 12px;
          .number {
            color: #54263d;
            font-size: 18px;
            height: 28px;
            line-height: 28px;
            width: 35px;
            text-align: center;
            &.a_0 {
              font-size: 12px;
              text-indent: 0;
              width: 44px;
            }
            &.a_1 {
              font-size: 0;
              background: url('../../../images/valentine_rank/top_1.png') no-repeat;
              background-size: contain;
            }
            &.a_2 {
              font-size: 0;
              background: url('../../../images/valentine_rank/top_2.png') no-repeat;
              background-size: contain;
            }
            &.a_3 {
              font-size: 0;
              background: url('../../../images/valentine_rank/top_3.png') no-repeat;
              background-size: contain;
            }
          }
          .avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            margin: 0 8px;
            background-color: #f9cdcd;
            overflow: hidden;
            img {
              width: 100%;
            }
          }
          .name {
            flex: 1;
          }
          .point {
            color: #f77;
            font-size: 16px;
            font-weight: 500;
          }

          &.fixed {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 75px;
            background: #fff;
            box-shadow: none;
            border-radius: 0;
            margin-bottom: 0;
            padding-bottom: calc(env(safe-area-inset-bottom) + 20px);
            padding-bottom: calc(constant(safe-area-inset-bottom) + 20px);
            box-sizing: border-box;
            .un {
              width: auto;
              font-size: 14px;
            }
          }
        }
        .sub_tit {
          font-size: 12px;
          color: #54263d;
          display: flex;
          padding: 0px 16px 8px 16px;
          .number {
            width: 48px;
          }
          .avatar {
            width: 48px;
          }
          .name {
            flex: 1;
          }
          .point {
            width: 60px;
            text-align: right;
          }
        }
      }

      .rule_content {
        width: 350px;
        height: 830px;
        margin: 12px auto;
        background: url('../../../images/valentine_rank/rule_img.png') no-repeat;
        background-size: contain;
      }
    }
  }
}

// img[src=""],
// img:not([src]) {
//     opacity: 0;
// }
